<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri='/WEB-INF/taglib/Menu.tld' prefix='t'%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <title>My JSP 'digHumanFile.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="/HR_Sys/javascript/My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <body>
   	<div style="height:30px;border:solid 1px blue;">
 		${user.trueName},欢迎光临！<font color="white">${user.name}:${user.id }</font>${params.path}
 	</div>
 	<div style="border:solid 1px red;height:100%;">
 		<div style="height:100%;width:180px;border:solid 1px blue;float:left;">
 			<t:menu dataSource="menus" width="180" iconPath="/icon.do?op=showIcon&icon.id=" colIdName="menuId" colParentIdName="menuUpId" colTitleName="menuTitle" colSrcName="menuSrc" colIconName="menuPic">${user.id }</t:menu>
 		</div>
 		<div style="height:100%;width:100%;border:solid 1px blue;">
    	<form method="POST" action="/HR_Sys/humanFile.do?op=addHumanFile">
    	<table width="100%" border="1" style="font-size: 12">
		  <tr>
		    <td width="72">I级机构</td>
		    <td width="120px">
		    	<input type="text" name="digHumanFile.firstKindName" value="${humanFileForm.digHumanFile.firstKindName }"  disabled="disabled" style="width: 100%"/>
		    </td>
		    <td width="72">II级机构</td>
		    <td width="120px">
		    	<input type="text" name="digHumanFile.secondKindName" value="${humanFileForm.digHumanFile.secondKindName }"  disabled="disabled" style="width: 100%"/>
		    </td>
		    <td width="72">III级机构</td>
		    <td colspan="2">
		    	<input type="text" name="digHumanFile.secondKindName" value="${humanFileForm.digHumanFile.thirdKindName }" disabled="disabled" style="width: 100%"/>
		    </td>
		    <td rowspan="5">&nbsp;</td>	
		  </tr>
		  <tr>
		    <td>职位分类</td>
		    <td width="120px">		    	
		    	<input name="digHumanFile.humanMajorKindName" type="text" value="${humanFileForm.digHumanFile.humanMajorKindName }" disabled="disabled" style="width: 100%"">		    
		    </td>
		    <td>职位名称</td>
		    <td width="120px"> 
		    	<input name="digHumanFile.hunmaMajorName" type="text"  value="${humanFileForm.digHumanFile.hunmaMajorName }" disabled="disabled" style="width: 100%">	    
		    </td>
		    <td>职称</td>
		    <td colspan="2">
		    	<select name="digHumanFile.humanProDesignation" style="width:100%;">
					
					<c:forEach var="proDesignation" items="${requestScope.humanFileForm.humanProDesignationList}">
						<c:if test="${proDesignation.attributeName==humanFileForm.digHumanFile.humanProDesignation }">
							<option value="proDesignation.attributeName" selected="selected">${proDesignation.attributeName }</option>
						</c:if>
						<c:if test="${proDesignation.attributeName!=humanFileForm.digHumanFile.humanProDesignation }">
							<option value="proDesignation.attributeName">${proDesignation.attributeName }</option>
						</c:if>						
					</c:forEach>
				</select>
				
			</td>
		    </tr>
		  <tr>
		    <td>姓名</td>
		    <td width="120px"><input type="text" name="digHumanFile.humanName" value="${humanFileForm.digHumanFile.humanName }" style="width:100%"/></td>
		    <td>性别</td>
		    <td>
		    	<select name="digHumanFile.humanSex" style="width:100%">
		    		<option>---	请选择---</option>		    		
		    		<c:if test="${humanFileForm.digHumanFile.humanSex=='男'}">
		    			<option value="男" selected="selected">男</option>
		    			<option value="女">女</option>
		    		</c:if>		    		
		    		<c:if test="${humanFileForm.digHumanFile.humanSex=='女'}">
		    			<option value="男">男</option>
		    			<option value="女" selected="selected">女</option>
		    		</c:if>		    		
		    	</select>
		    </td>
		    <td>Email</td>
		    <td colspan="2"><input type="text" name="digHumanFile.humanEmail" value="${humanFileForm.digHumanFile.humanEmail }" style="width:100%"/></td>
		    </tr>
		  <tr>
		    <td>电话</td>
		    <td width="120px"><input type="text" name="digHumanFile.humanTelephone" value="${humanFileForm.digHumanFile.humanTelephone }" style="width:100%"/></td>
		    <td>QQ</td>
		    <td><input type="text" name="digHumanFile.humanQq" value="${humanFileForm.digHumanFile.humanQq }" style="width:100%"/></td>
		    <td>手机</td>
		    <td colspan="2"><input type="text" name="digHumanFile.humanMobilephone" value="${humanFileForm.digHumanFile.humanMobilephone}" style="width:100%"/></td>
		    </tr>
		  <tr>
		    <td>住址</td>
		    <td colspan="3"><input type="text" name="digHumanFile.humanAddress" value="${humanFileForm.digHumanFile.humanAddress }" style="width:100%"/></td>
		    <td>邮编</td>
		    <td colspan="2"><input type="text" name="digHumanFile.humanPostcode" value="${humanFileForm.digHumanFile.humanPostcode }" style="width:100%"/></td>
		    </tr>
		  <tr>
		    <td>国籍</td>
		    <td>
				<select name="digHumanFile.humanNationality" style="width:100%;">
					<option>---	请选择---</option>
					<c:forEach var="nation" items="${requestScope.humanFileForm.humanNationalityList}">
						<c:if test="${nation.attributeName==humanFileForm.digHumanFile.humanNationality}">
							<option value="nation.attributeName" selected="selected">${nation.attributeName }</option>
						</c:if>
						<c:if test="${nation.attributeName!=humanFileForm.digHumanFile.humanNationality}">
							<option value="nation.attributeName" selected="selected">${nation.attributeName }</option>
						</c:if>
					</c:forEach>
				</select>
			</td>
		    <td width="72">出生地</td>
		    <td><input type="text" name="digHumanFile.humanBirthplace" value="${humanFileForm.digHumanFile.humanBirthplace }" style="width:100%"/></td>
		    <td>生日</td>
		    <td><input type="text" name="digHumanFile.humanBirthday" style="width:120px" value="${humanFileForm.digHumanFile.humanBirthday}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></td>
		    <td width="72">民族</td>
		    <td>
		    	<select name="digHumanFile.humanRace" style="width:100%;">
		    		<option>---	请选择---</option>
					<c:forEach var="race" items="${requestScope.humanFileForm.humanRaceList}">
						<c:if test="${race.attributeName==humanFileForm.digHumanFile.humanRace}">
							<option value="race.attributeName" selected="selected">${race.attributeName }</option>
						</c:if>
						<c:if test="${race.attributeName!=humanFileForm.digHumanFile.humanRace}">
							<option value="race.attributeName">${race.attributeName }</option>
						</c:if>
					</c:forEach>
				</select>
			</td>
		  </tr>
		  <tr>
		    <td>宗教信仰</td>
		    <td>
		    	<select name="digHumanFile.humanReligion" style="width:100%;">
					<c:forEach var="religion" items="${requestScope.humanFileForm.humanReligionList}">
						<c:if test="${religion.attributeName==humanFileForm.digHumanFile.humanReligion}">
							<option value="religion.attributeName" selected="selected">${religion.attributeName }</option>
						</c:if>						
						<c:if test="${religion.attributeName!=humanFileForm.digHumanFile.humanReligion}">
							<option value="religion.attributeName">${religion.attributeName }</option>
						</c:if>
					</c:forEach>
				</select>
		    </td>
		    <td>政治面貌</td>
		    <td>
		    	<select name="digHumanFile.humanParty" style="width:100%;">
		    		<option>---	请选择---</option>
					<c:forEach var="party" items="${requestScope.humanFileForm.humanPartyList}">
						<c:if test="${humanFileForm.digHumanFile.humanParty==party.attributeName}">
							<option value="party.attributeName" selected="selected">${party.attributeName }</option>
						</c:if>
						
						<c:if test="${humanFileForm.digHumanFile.humanParty!=party.attributeName}">
							<option value="party.attributeName">${party.attributeName }</option>
						</c:if>												
					</c:forEach>
				</select>
		    </td>
		    <td>身份证号</td>
		    <td colspan="4"><input type="text" name="digHumanFile.humanIdCard" value="${humanFileForm.digHumanFile.humanIdCard }" style="width:100%"/></td>
		    		  </tr>
		  <tr>
		    <td>年龄</td>
		    <td><input type="text" name="digHumanFile.humanAge" value="${humanFileForm.digHumanFile.humanAge }" style="width:100%"/></td>
		    <td>学历</td>
		    <td>
				<select name="digHumanFile.humanEducatedDegree" style="width:100%;">
					<option>---	请选择---</option>
					<c:forEach var="educatedDegree" items="${requestScope.humanFileForm.humanEducatedDegreeList}">
						<c:if test="${humanFileForm.digHumanFile.humanEducatedDegree==educatedDegree.attributeName}">
							<option value="educatedDegree.attributeName" selected="selected">${educatedDegree.attributeName }</option>
						</c:if>
						
						<c:if test="${humanFileForm.digHumanFile.humanEducatedDegree!=educatedDegree.attributeName}">
							<option value="educatedDegree.attributeName">${educatedDegree.attributeName }</option>
						</c:if>
					</c:forEach>
				</select>
			</td>
			<td>社会保障号码</td>
		    <td colspan="4"><input type="text" name="digHumanFile.humanSocietySecurityId" value="${humanFileForm.digHumanFile.humanSocietySecurityId }" style="width:100%"/></td>
			
		    </tr>
		   
		  <tr>
		    <td>薪酬标准</td>
		    <td> 
				<select name="digHumanFile.salaryStandardId" style="width:100%;">
					<option>---	请选择---</option>
					<c:forEach var="salaryStandard" items="${requestScope.humanFileForm.salaryStandardList}">
						<c:if test="${salaryStandard.standardId==humanFileForm.digHumanFile.salaryStandardId}">
							<option value="salaryStandard.standardId" >${salaryStandard.standardName }</option>
						</c:if>
						<c:if test="${salaryStandard.standardId!=humanFileForm.digHumanFile.salaryStandardId}">
							<option value="salaryStandard.standardId">${salaryStandard.standardName }</option>
						</c:if>
					</c:forEach>
				</select>	
				<input type="hidden" name="digHumanFile.standardName">
			</td>
		    <td>开户行</td>
		    <td><input type="text" name="digHumanFile.humanBank" value="${humanFileForm.digHumanFile.humanBank }" style="width:100%"/></td>
		    <td>教育年限</td>
		    <td>
		    	<select name="digHumanFile.humanEducatedYears" style="width:120px;">
					<option>---	请选择---</option>
					<c:forEach var="educatedYears" items="${requestScope.humanFileForm.humanEducatedYearsList}">
						<c:if test="${humanFileForm.digHumanFile.humanEducatedYears==educatedYears.attributeName}">
							<option value="educatedYears.attributeName" selected="selected">${educatedYears.attributeName }</option>
						</c:if>	
						<c:if test="${humanFileForm.digHumanFile.humanEducatedYears!=educatedYears.attributeName}">
							<option value="educatedYears.attributeName">${educatedYears.attributeName }</option>
						</c:if>							
					</c:forEach>
				</select>
		    </td>
		    <td>专业</td>
		    <td>		    
		    	<select name="digHumanFile.humanEducatedMajor" style="width:100%;">
		    		<option>---	请选择---</option>					
					<c:forEach var="major" items="${requestScope.humanFileForm.humanEducatedMajorList}">
						<c:if test="${major.attributeName==humanFileForm.digHumanFile.humanEducatedMajor }">
							<option value="major.attributeName" selected="selected">${major.attributeName }</option>
						</c:if>
						<c:if test="${major.attributeName!=humanFileForm.digHumanFile.humanEducatedMajor }">
							<option value="major.attributeName">${major.attributeName }</option>
						</c:if>						
					</c:forEach>
				</select>		    
		    	
		    </td>
		    		  </tr>
		  <tr>
		    <!--td>建档时间</td>
		    <td><input type="text" name="humanFile.registTime" style="width:100%"/></td-->
		    <td>特长</td>
		    <td>
		    <select name="digHumanFile.humanSpeciality" style="width:100%;">
		    	<option>---	请选择---</option>
					<c:forEach var="speciality" items="${requestScope.humanFileForm.humanSpecialityList}">
						<c:if test="${speciality.attributeName==humanFileForm.digHumanFile.humanSpeciality}">
							<option value="speciality.attributeName" selected="selected">${speciality.attributeName }</option>
						</c:if>
						<c:if test="${speciality.attributeName!=humanFileForm.digHumanFile.humanSpeciality}">
							<option value="speciality.attributeName">${speciality.attributeName }</option>
						</c:if>
					</c:forEach>					
				</select>		</td>
		    <td>爱好</td>
		    <td>
		    	<select name="digHumanFile.humanHobby" style="width:100%;">
					<option>---	请选择---</option>
					<c:forEach var="hoppy" items="${requestScope.humanFileForm.humanHobbyList}">
						<c:if test="${hoppy.attributeName==humanFileForm.digHumanFile.humanHobby}">
							<option value="hoppy.attributeName" selected="selected">${hoppy.attributeName }</option>
						</c:if>
						<c:if test="${hoppy.attributeName!=humanFileForm.digHumanFile.humanHobby}">
							<option value="hoppy.attributeName">${hoppy.attributeName }</option>
						</c:if>
					</c:forEach>
				</select>		    
		    
		    </td>
		    <td>帐号</td>
		    <td  width="120px"><input type="text" name="digHumanFile.humanAccount" value="${humanFileForm.digHumanFile.humanAccount }" style="width:120px"/></td>
		    <td>复核人<br></td>
		    <td><input type="text" name="humanFile.checker" value="${sessionScope.user.name }" readonly="readonly" style="width:100%"/></td>
		   </tr>
		  <tr>
		    <td>个人履历</td>
		    <td colspan="7"><textarea name="digHumanFile.humanHistroyRecords" style="width:100%;height:60px;">${humanFileForm.digHumanFile.humanHistroyRecords}</textarea></td>   
		  </tr>
		  <tr>
		    <td>家庭关系</td>
		    <td colspan="7"><textarea name="digHumanFile.humanFamilyMembership" style="width:100%;height:60px;">${humanFileForm.digHumanFile.humanFamilyMembership}</textarea></td>
		  </tr>
		  <tr>
		    <td>备注</td>
		    <td colspan="7"><textarea name="digHumanFile.remark" style="width:100%;height:60px;">${humanFileForm.digHumanFile.remark}</textarea></td>
		  </tr>
		</table>
		<div style="width: 100%" align="right"><input type="button" value="提交" onclick="doSubmit()"/> <input type="reset" value="重置"/></div>
		</form>    
		</div>
 	</div>
 	<div style="height:30px;border:solid 1px blue;">
 	</div>
  </body>
</html>
